package mutithread.concurrent;

/**
 * Created by steve
 * 2018/10/17 2:39 PM
 */
public class KeyPersonThread extends Thread {

    @Override
    public void run() {
        System.out.println(Thread.currentThread().getName() + "关键人物开始战斗了！");

        for (int i=0; i<10; i++) {
            System.out.println(Thread.currentThread().getName() + "关键人物进攻对方" + i + "次了！");
        }

        System.out.println(Thread.currentThread().getName() + "关键人物结束战斗了！");
    }
}
